<!-- 图片预览组件 -->
<template>
    <el-image-viewer v-if="props.modelValue" :url-list="[props.imgURL]" @close="$emit('update:modelValue', false)" />
</template>

<script setup>
const props = defineProps({
    imgURL: {
        type: String,
        default: ''
    },
    modelValue: {
        type: Boolean,
        default: false
    }
})

</script>

<style lang="scss" scoped></style>